//
//  ViewController.swift
//  SwiftFramework
//
//  Created by aaron on 2017/8/17.
//  Copyright © 2017年 com.aaron. All rights reserved.
//

import UIKit
import Kingfisher
class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let url = URL(string: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1504112488679&di=f209961b6dfbfd1485dc9dc15c3c279c&imgtype=0&src=http%3A%2F%2Fpic.yesky.com%2FuploadImages%2F2015%2F131%2F36%2FFNQLIK0359C6.jpg")
        let imageview = UIImageView.init();
        imageview.snp.makeConstraints{
            make in
            make.width.equalTo(SCREEN_WIDTH)
            make.height.equalTo(SCREEN_WIDTH)
        }
        
        imageview.kf.setImage(with: url)
        self.view.backgroundColor = UIColor.blue
        self.view.addSubview(imageview)
        // Do any additional setup after loading the view, typically from a nib.
    }

  
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

